package day1207_4;

class Computer{
    private String cpuType;//参数-变量
    private int   memorySize;
    private String model;

    public String getCpuType() {
        return cpuType;
    }

    public void setCpuType(String cpuType) {
        this.cpuType = cpuType;
    }



    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }
    //右键--generate--get  set方法--选择变量名
    //功能-方法



    public void setMemorySize(int memorySize) {
        this.memorySize = memorySize;
    }
    public int getMemorySize() {
        return memorySize;
    }
}



public class T2 {
    public static void main(String[] args) {
        Computer  dell=new Computer();
        dell.setMemorySize( 6 );/////////////////
        int m= dell.getMemorySize();///////////////////////
        System.out.println(m);
    }
}

